// ClientReduxProvider.tsx
"use client";
import { Provider } from "react-redux";
import store from "@/store";
import React from "react";
import Playerbar from "../player/playerbar";

// 定义 Props 类型
interface ClientReduxProviderProps {
  children: React.ReactNode; // 使用 ReactNode 类型约束 children
}

const ClientReduxProvider: React.FC<ClientReduxProviderProps> = ({
  children,
}) => {
  return (
    <Provider store={store}>
      {children}
      <Playerbar></Playerbar>
    </Provider>
  );
};

export default ClientReduxProvider;
